package movierecommender

class Movies {
    static constraints = {
        movieID(unique:true)
        title(blank:false,unique:true)
        genres()
    }
    int movieID
    String title
    String genres
    
    static hasMany = [ratings:Ratings]
    
    String toString(){
        return "${title}"
    }
    

}
